export const canTurnTo = (path, menus) => {
    for (let item of menus) {
        if (item.path === path) {
            return true
        }
        if (item.children && Array.isArray(item.children) && item.children.length > 0) {
            if (canTurnTo(path, item.children)) {
                return true
            }
        }
    }
    return false
}
